package org.grayrabbit.cloud.core.command;

import org.grayrabbit.cloud.utils.logger.Output;
import org.grayrabbit.cloud.utils.manager.CommandHandler;
import org.grayrabbit.cloud.utils.manager.LocalCommandHandler;
import org.grayrabbit.cloud.utils.manager.RemoteCommandHandler;

public class CommandHandlerFactory {

	public static CommandHandler getRemoteCommandHandler(String key,Output out){
		return new RemoteCommandHandler(key,out);
	}
	
	public static CommandHandler getLocalCommandHandler(Output out,boolean rpcServer){
		return new LocalCommandHandler(out,rpcServer);
	}

}
